cmake_minimum_required(VERSION 3.10)

# 包含工具链文件，检查环境变量并设置安装路径
include(${CMAKE_CURRENT_SOURCE_DIR}/toolchain.cmake)

project(webserverpjr VERSION 1.0.0.0)

 
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")  
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)      
 
 
SET(CMAKE_EXPORT_COMPILE_COMMANDS ON)   

 
#设置库文件输出目录
set(LIBS_OUTPUT_PATH ${CMAKE_BINARY_DIR}/output/lib)
set(BIN_OUTPUT_PATH ${CMAKE_BINARY_DIR}/output/bin)
set(THIRDPARTY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/output/thirdparty)
 
 
add_subdirectory(thirdparty)
add_subdirectory(src)
add_subdirectory(test)

install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/scripts DESTINATION . USE_SOURCE_PERMISSIONS)